﻿using System;

namespace State
{
    public class WorkState : State
    {
        public override void DoWork(Work work)
        {
            if(work.Hour < 18)
            {
                Console.WriteLine("上班时间，好累！");
            }
            else
            {
                work.SetState(new EveningState());
                work.DoWork();
            }
        }
    }
}
